class MemberLevelSystem:
    def __init__(self):
        # 根据图片定义的会员等级标准
        self.level_standards = {
            '钻石会员': (1000, 10000),
            '白金会员': (500, 5000),
            '黄金会员': (200, 2000),
            '白银会员': (100, 1000),
            '青铜会员': (0, 500),
            '普通会员': (0, 0)
        }

    def evaluate_level(self, consumption, points):
        """根据消费金额和积分评定会员等级"""
        # 检查钻石会员条件
        if consumption >= 1000 and points >= 10000:
            return '钻石会员'
        # 检查白金会员条件
        elif consumption >= 500 and points >= 5000:
            return '白金会员'
        # 检查黄金会员条件
        elif consumption >= 200 and points >= 2000:
            return '黄金会员'
        # 检查白银会员条件
        elif consumption >= 100 and points >= 1000:
            return '白银会员'
        # 检查青铜会员条件
        elif points >= 500:
            return '青铜会员'
        # 其他情况为普通会员
        else:
            return '普通会员'

    def display_member_info(self, consumption, points):
        """显示会员信息"""
        level = self.evaluate_level(consumption, points)

        print(f"消费金额: ¥{consumption}")
        print(f"积分: {points}")
        print(f"会员等级: {level}")
        print("-" * 30)


# 使用示例
if __name__ == "__main__":
    member_system = MemberLevelSystem()

    # 测试数据 - 根据图片中的等级标准
    test_members = [
        (1200, 12000),  # 钻石会员
        (800, 8000),  # 白金会员
        (300, 3000),  # 黄金会员
        (150, 1500),  # 白银会员
        (50, 800),  # 青铜会员 (仅看积分)
        (80, 300),  # 普通会员
        (0, 400),  # 普通会员
        (200, 400),  # 普通会员 (积分不足)
    ]

    print("会员等级评定结果:")
    print("=" * 30)

    for consumption, points in test_members:
        member_system.display_member_info(consumption, points)